package com.yike.user.service;

import com.yike.user.entity.Banner;
import com.yike.user.param.BannerPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;
import com.yike.user.param.BannerParam;
import com.yike.user.vo.BannerVo;

/**
 * 轮播图表 服务类
 *
 * @author Sakura
 * @since 2024-09-12
 */
public interface BannerService extends BaseService<Banner> {

    /**
     * 保存
     *
     * @param bannerParam
     * @return
     * @throws Exception
     */
    boolean saveBanner(BannerParam bannerParam) throws Exception;

    /**
     * 修改
     *
     * @param bannerParam
     * @return
     * @throws Exception
     */
    boolean updateBanner(BannerParam bannerParam) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteBanner(Long id) throws Exception;

    BannerVo getBannerById(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param bannerPageParam
     * @return
     * @throws Exception
     */
    Paging<BannerVo> getBannerPageList(BannerPageParam bannerPageParam) throws Exception;

}
